let arr1 = new Array();
let arr2 = [];

let fruits = ["apple", "orange", "plum"];

for (let i = 0; i < fruits.length; i++) {
    alert(fruits[i]);
}


fruits[2] = "Pear";

fruits[3] = "Lemon";

alert(fruits.length);

alert(fruits);

let arr3 = ['Apple', {name: 'John'}, true, function() {alert('hello');}]

alert(arr3[1].name);

arr3[3]();

// 逗号结尾
let arr4 = [
    "Apple",
    "Orange",
    "Plum",
];

